// 封装一个获取当前时刻的函数
export const getTime = () => {
  let message = ""
  let hours = new Date().getHours()
  if (hours < 6) {
    message = "凌晨"
  } else if (hours < 10) {
    message = "上午"
  } else if (hours < 14) {
    message = "中午"
  } else if (hours < 18) {
    message = "下午"
  } else {
    message = "晚上"
  }
  return message
}
